package edu.sctu.jarime.may.day20150504;

/**
 * Created by user19 on 2015/5/4.
 */
public class IsMain {


    public static void main(String[] args) {
        dogone dogone;
        dogone = new dogone(new IsInterface() {

            @Override
            public void getinformation(String color, String size, String action) {
                System.out.println("color:" + color+"\n");
                System.out.println("size:" + size);
                System.out.println("action:" + action);
            }

        });
        dogone.color();
        dogone.size();
        dogone.action();
        dogone.output();






        Dogtwo dogtwo=new Dogtwo(new IsInterface() {
            @Override
            public void getinformation(String color, String size, String action) {
                System.out.println("color:" + color);
                System.out.println("size:" + size);
                System.out.println("action:" + action);

            }
        });
        dogtwo.size();
        dogtwo.action();
        dogtwo.color();
        dogtwo.output();



        Dogthree dogthree=new Dogthree(new IsInterface() {
            @Override
            public void getinformation(String color, String size, String action) {
                System.out.println("color:" + color);
                System.out.println("size:" + size);
                System.out.println("action:" + action);
            }
        });
        dogthree.color();
        dogthree.action();
        dogthree.size();
        dogthree.output();


    }



}